//
//  GXWHomeViewController.swift
//  swift3.0项目开始
//
//  Created by 龚昕炜 on 16/7/27.
//  Copyright © 2016年 龚昕炜. All rights reserved.
//

import UIKit

class GXWHomeViewController: GXWBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.cyan()
        
        setUpUI()
    }
    
    @objc private func showFriends() {
        navigationController?.pushViewController(GXWDemoViewController(), animated: true)
    }
}

extension GXWHomeViewController {
    
    override func setUpUI() {
        super.setUpUI()
        
        navItem.leftBarButtonItem = UIBarButtonItem.init(title: "好友", target: self, action: #selector(showFriends))
    }
    
}
